<?php
$this->render('include/sortLink.phtml');
echo $this->render('resource/link/_tab.phtml');
if(!function_exists('__sortLink')) {
	function __sortLink() {}
}
?>
<form action="" method="post">
<div class="body">
	<table class="list">
		<tr>
			<th class="narrow sort"><?php echo __sortLink('key', 'KEY');?></th>
			<th class="narrow sort"><?php echo __sortLink('click', 'CLICK');?></th>
			<th><?php echo $this->language('URL');?></th>
			<th class="narrow"></th>
		</tr>
		<?php foreach($this->list AS $key => $row) { ?>
		<tr>
			<td class="key"><?php echo $row->getKey();?></td>
			<td class="center"><h3><?php echo $row->getClick();?></h3></td>
			<td><a href="<?php echo $row->getUrl();?>" target="_blank"><?php echo $row->getUrl();?></a></td>
			<td></td>
		</tr>
		<?php } ?>
		<?php if(count($this->list) <= 0) {?>
		<tr>
			<td colspan="4" class="nohover">
				<div class="msg">
					<div class="common error" style="border:0;background:#fff;">
						<i class="icon"></i>
						<h4>STOP</h4>
						<div class="msg-bd">
							No Link found. 
						</div>
					</div>
				</div>
			</td>
		</tr>
		<?php } ?>
	</table>
</div>
</form>
<div class="body">
	<?php echo $this->paginator($this->list)->render();?>
</div>
